package models

import "time"

var RankSubject map[int]string

// 位次
type Rank struct {
	Id          int64     `xorm:"pk autoincr" json:"rankId"`
	Year        int       `xorm:"comment('年份')" json:"rankYear"`
	Subject     int       `xorm:"comment('科目 0未知 1文科 2理科')" json:"rankSubject"`
	Score       int       `xorm:"comment('分数')" json:"rankScore"`
	ScoreNum    int       `xorm:"comment('同分人数')" json:"rankScoreNum"`
	Section     string    `xorm:"comment('位次区间')" json:"rankSection"`
	Created     time.Time `xorm:"created comment('创建时间')" json:"-"`
	Deleted     time.Time `xorm:"deleted comment('删除时间')" json:"-"`
	SubjectShow string    `xorm:"-" json:"subjectShow"`
}

func init() {
	RankSubject = map[int]string{
		0: "未知",
		1: "文科",
		2: "理科",
	}
}
